package main

import (
	"fmt"
	"reflect"
)

func test11(){
	var s int = 18
	var v = reflect.ValueOf(s)
	v.SetInt(43)
	fmt.Println(s)
}

func test12() {
	var s int = 98393
	// 反射指针
	var v = reflect.ValueOf(&s)
	// 要拿出指针指向的元素经行修改
	v.Elem().SetInt(87415390)
	fmt.Println(s)
}

func main(){
	test11()
	//test12()
}